<!DOCTYPE html>
<!-- saved from url=(0053)http://aogaosuo.sailing.wang/index/user/register.html -->
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户注册-众筹网</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./2用户注册-众筹网_files/pintuer.css">
    <script src="./2用户注册-众筹网_files/jquery-1.8.3.min.js"></script>
    <script src="./2用户注册-众筹网_files/pintuer.js"></script>
    <script src="./2用户注册-众筹网_files/respond.js"></script>
    <script src="./2用户注册-众筹网_files/form.js"></script>
    <script src="./2用户注册-众筹网_files/layer.js"></script><link rel="stylesheet" href="./2用户注册-众筹网_files/layer.css" id="layui_layer_skinlayercss" style="">
</head>

<body onkeydown="BindEnter(event)">

<script type="text/javascript">
    function BindEnter(obj) {
        if(obj.keyCode == 13) {
            login()
        }
    }
</script>

<style>

.mynav li{width: 80px;height: 36px;line-height: 36px;float: left;text-align: center;margin-right: 5px;border-radius: 3px;position: relative;display: block;}

.mynav .active{background-color: #ea544a;}

.mynav .active a{color: #fff;}

</style>

<script type="text/javascript"> 

var Sys = {};

        var ua = navigator.userAgent.toLowerCase();

        if (window.ActiveXObject){

            Sys.ie = ua.match(/msie ([\d.]+)/)[1]

            if (Sys.ie<=7){

            alert('你目前的IE版本为'+Sys.ie+'版本太低，请升级！');location.href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie";

            }

        }

</script> 

<div class="x12 margin-big-bottom text-little padding-small bg-black text-pale" id="top">
    <div class="container">
        <span class="x2">欢迎来到众筹网！</span>
        <span class="x10 text-right text-pale">
                            <a href="http://aogaosuo.sailing.wang/index/user/login.html" class="text-pale">登录</a> | <a href="http://aogaosuo.sailing.wang/index/user/register.html" class="text-pale">注册</a>
                    </span>
    </div>

</div>

<div class="container-layout  bg-white">

    <div class="container padding-big-top padding-big-bottom">

        <div class="x12">

            <div class="x2">
                <a href="http://aogaosuo.sailing.wang/"><img src="./2用户注册-众筹网_files/logo.png" style="height: 55px" alt="众筹网" class="img-responsive"></a>
            </div>

            <div class="x10 padding-top">
                <div class="x8">
                    <ul class="mynav text-big float-right padding-big-right">
                        <li><a href="http://aogaosuo.sailing.wang/">首页</a></li>
                        <li><a href="http://aogaosuo.sailing.wang/index/item/index.html">项目</a></li>
                        <li><a href="http://aogaosuo.sailing.wang/index/news/index.html">新闻</a></li>
                    </ul>
                </div>

                <div class="x4">
                    <form id="form" action="http://aogaosuo.sailing.wang/index/item/index.html" method="get">
                        <div class="input-group padding-little-top">
                            <div class="field">
                                <input type="text" class="input border-red" name="search" size="30" placeholder="项目名称">
                            </div>
                            <span class="addbtn"><button type="submit" class="button bg-red">搜!</button></span>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script>

function select (){

    var content = $('input[name="search"]');

    if(content.val()==''){

        layer.tips("请填写搜索内容！","#content",{

            tips: 1

        })

        content.focus();

        return false

    } 
    window.location.href="/index.php/Home/Item/index/search/"+content.val()
}

</script>

<div class="x12 padding-large-top" style="background:url(/assets/zc/img/register_bj.jpg) center;height:650px;">
    <div class="container">
        <div class="x5 float-right bg-white padding-large" style="opacity: 0.8;border-radius: 4px">
            <h2 class="padding-bottom">用户注册</h2>
            <form name="form1" id="register-form" class="form-vertical" method="POST" action="http://aogaosuo.sailing.wang/index/user/register.html">
                <input type="hidden" name="invite_user_id" value="0">
                <input type="hidden" name="url" value="">
                <input type="hidden" name="__token__" value="6774c084339162327a8e74fa93283d4f">            <div class="form-group">
                <div class="field">
                    <!--<span class="padding-small-top icon icon-user"></span>-->
                    <input type="text" placeholder="手机号" name="mobile" class="input input-big box-shadow-none text-small radius-none">
                </div>
            </div>
            <div class="form-group">
                <div class="field">
                    <!--<span class="padding-small-top icon icon-check-square-o"></span>-->
                    <input type="text " size="18" class="input radius-none input-big box-shadow-none text-small input-auto" name="captcha" placeholder="验证码">
                    <input type="button" class="button button-big border text-small" onclick="getyzm(this)" value="获取验证码">
                </div>
            </div>
            <div class="form-group">
                <div class="field">
                    <input type="text" placeholder="姓名" name="realname" class="input input-big box-shadow-none text-small radius-none">
                </div>
            </div>
            <div class="form-group">
                <div class="field">
                    <input type="text" placeholder="身份证号码" name="idnum" class="input input-big box-shadow-none text-small radius-none">
                </div>
            </div>
            <div class="form-group">
                <div class="field">
                    <span class="x4 float-left">
                        <div class="button button-big border text-small input-file" href="javascript:void(0);" style="color: black">
                            上传身份证正面照
                            <form id="myupload" action="http://aogaosuo.sailing.wang/index/ajax/upload" method="post" enctype="multipart/form-data"><input size="100" name="file" id="card_positive" type="file" accept="image/png,image/jpeg,image/jpg"></form>
                        </div>
                    </span>
                    <div class="x8 positive" style="padding: 2px">
                    </div>
                </div>
            </div>
            <div class="form-group" style="clear:both">
                <div class="field">
                    <span class="x4 float-left">
                        <div class="button button-big border text-small input-file" href="javascript:void(0);" style="color: black">
                            上传身份证反面照
                            <form id="mynegative" action="http://aogaosuo.sailing.wang/index/ajax/upload" method="post" enctype="multipart/form-data"><input size="100" name="file" id="card_negative" type="file" accept="image/png,image/jpeg,image/jpg"></form>
                        </div>
                    </span>
                    <div class="x8 negative" style="padding: 2px">
                    </div>
                </div>
            </div>
            <div class="form-group" style="clear:both">
                <div class="field">
                    <span class="x4 float-left">
                        <div class="button button-big border text-small input-file" href="javascript:void(0);" style="color: black">
                            上传手持身份证照
                            <form id="card_hand" action="http://aogaosuo.sailing.wang/index/ajax/upload" method="post" enctype="multipart/form-data"><input size="100" name="file" id="card_hand" type="file" accept="image/png,image/jpeg,image/jpg"></form>
                        </div>
                    </span>
                    <div class="x8 card_hand" style="padding: 2px">
                    </div>
                </div>
            </div>

            <div style="margin: 15px 0 7px 0;clear:both">
                <span><input name="khcheck" type="checkbox" checked="" value="1"><a href="http://aogaosuo.sailing.wang/index/user/khxy.html" style="color: #ea544a;"> 同意《众筹系统服务条款》</a></span>
            </div>
            <!--<a href="javascript:void(0)"  class="x12 bg-red   text-center padding text-white text-big" style="border-radius: 4px" onclick="login(this)">确认并支付开户费</a>-->
                <button type="submit" class="x12 bg-red button  text-center padding text-white text-big" style="border-radius: 4px">确认并支付开户费</button>
            <div class="x12 margin-top">
                <span>已有账号？  【<a href="http://aogaosuo.sailing.wang/index/user/login.html" class="text-blue">立即登录</a>】</span>
            </div>
            <div class="x12 margin-top">
            </div>
            </form>
        </div>

    </div>
</div>
<script>
    //上传身份证正面
    $(function () {
        $("#card_positive").wrap("<form id='myupload' action='/index/ajax/upload' method='post' enctype='multipart/form-data'></form>");
        $("#card_positive").change(function(){
            $("#myupload").ajaxSubmit({
                beforeSend: function() {
                    var index = layer.load(1, {shade: [0.1,'#fff']}); //0.1透明度的白色背景
                }, success: function(data) {
                    if(data.code==0){
                        layer.open({content:data.msg, btn:['好的'], yes:function(){layer.closeAll()}})
                    }else{
                        var filehtml='<img src="'+data.data.url+'" width="70" height="40" style="border-radius: 1px"><input type="hidden" name="card_positive" value="'+data.data.url+'"/>';
                        $(".positive").html(filehtml);
                        $(".positive").removeClass('hidden');
                        layer.closeAll()
                    }
                }
            });
        });
        //上传身份证反面
        $("#card_negative").wrap("<form id='mynegative' action='/index/ajax/upload' method='post' enctype='multipart/form-data'></form>");
        $("#card_negative").change(function(){
            $("#mynegative").ajaxSubmit({
                beforeSend: function() {
                    var index = layer.load(1, {shade: [0.1,'#fff']}); //0.1透明度的白色背景
                },
                success: function(data) {
                    if(data.code==0){
                        layer.open({content:data.msg, btn:['好的'], yes:function(){layer.closeAll()}})
                    }else{
                        var filehtml='<img src="'+data.data.url+'" width="70" height="40" style="border-radius: 1px"><input type="hidden" name="card_negative" value="'+data.data.url+'"/>';
                        $(".negative").html(filehtml)
                        $(".negative").removeClass('hidden');
                        layer.closeAll()
                    }
                }
            });
        });
        //上传手持身份证
        $("#card_hand").wrap("<form id='card_hand' action='/index/ajax/upload' method='post' enctype='multipart/form-data'></form>");
        $("#card_hand").change(function(){
            $("#card_hand").ajaxSubmit({
                beforeSend: function() {
                    var index = layer.load(1, {shade: [0.1,'#fff']}); //0.1透明度的白色背景
                },
                success: function(data) {
                    if(data.code==0){
                        layer.open({content:data.msg, btn:['好的'], yes:function(){layer.closeAll()}})
                    }else{
                        var filehtml='<img src="'+data.data.url+'" width="70" height="40" style="border-radius: 1px"><input type="hidden" name="card_hand" value="'+data.data.url+'"/>';
                        $(".card_hand").html(filehtml)
                        $(".card_hand").removeClass('hidden');
                        layer.closeAll()
                    }
                }
            });
        });
    });

    var wait=60;
    function time(o) {
        if (wait == 0) {
            o.removeAttribute("disabled");
            o.value="获取验证码";
            wait = 30;
        } else {
            o.setAttribute("disabled", true);
            o.value="重新发送(" + wait + ")";
            wait--;
            setTimeout(function() {
                time(o)
            }, 1000)
        }
    }

    function getyzm(d){
        var mobile=$("input[name='mobile']");
        if(mobile.val()==''){
            layer.tips('手机号不能为空', mobile);
            mobile.focus();
            return false
        }
        var telReg = !!mobile.val().match(/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/);
        if(telReg == false){
            layer.tips('手机号格式不对', mobile);
            mobile.focus();
            return false
        }
        $.post('sendSmsCode',{mobile:mobile.val()},function(e){
            if(e.code==1){
                layer.msg('验证已发送');
                time(d);
                $(d).text('验证已发送');
            }else{
                layer.msg(e.msg)
            }
        })
    }

    function login(d){
        var khcheck = $("input[name='khcheck']:checked").val();
        if (khcheck !== '1'){
            layer.msg('请阅读并勾选服务条款');
            return false;
        }

        var mobile=$("input[name='mobile']");
        var captcha=$("input[name='captcha']");
        var realname=$("input[name='realname']");
        var idnum=$("input[name='idnum']");
        var card_positive=$("input[name='card_positive']");
        var card_negative=$("input[name='card_negative']");
        var card_hand=$("input[name='card_hand']");
        if(mobile.val()==''){
            layer.tips('手机号不能为空', mobile);
            mobile.focus();
            return false
        }
        if(captcha.val()==''){
            layer.tips('验证码不能为空', captcha,{
                tips:4,
            });
            captcha.focus();
            return false
        }
        if(realname.val()==''){
            layer.tips('姓名不能为空', realname);
            realname.focus();
            return false
        }
        if(idnum.val()==''){
            layer.tips('身份证号码不能为空', idnum);
            idnum.focus();
            return false
        }
        if(card_positive.val()==''){
            layer.tips('请上传身份证正面照', card_positive);
            card_positive.focus();
            return false
        }
        if(card_negative.val()==''){
            layer.tips('请上传身份证反面照', card_negative);
            card_negative.focus();
            return false
        }
        if(card_hand.val()==''){
            layer.tips('请上传手持身份证照', card_hand);
            card_hand.focus();
            return false
        }

        $.post(
            "/index/user/register.html",
            {
                mobile:mobile.val(),
                captcha:captcha.val(),
                realname:realname.val(),
                idnum:idnum.val(),
                card_positive:card_positive.val(),
                card_negative:card_negative.val(),
                card_hand:card_hand.val(),
            },function (data){
                if (data.code == 1) {
//                    window.location.href=data.url
                    //成功后拿数据去支付
                }else{
                    layer.msg(data.msg);
                }
            }
        )
    }
</script>

<div class="container-layout text-gray  bg-black bg-inverse padding-big-top padding-big-bottom margin-big-top">
    <div class="container text-small">
        <div class="x10 height-big margin-bottom">
						   <!--<a href="#" class="padding-big-right text-gray">关于我们</a>-->
						   <!--<a href="#" class="padding-big-right text-gray">企业资质</a>-->
						   <!--<a href="#" class="padding-big-right text-gray">帮助中心</a>-->
						   <!--<a href="#" class="padding-big-right text-gray">操作说明</a>-->
						   <!--<a href="#" class="padding-big-right text-gray">免责声明</a>-->
						   <!--<a href="#" class="padding-big-right text-gray">联系我们</a>-->
			        </div>
        <div class="x12 text-left text-little">版权所有 © 众筹网 All Rights Reserved，赣ICP备：380958888</div>

    </div>

</div>

<div class="fixed-bottom-right margin-right" style="width:40px;right:10px;z-index: 99999;">

<!--     <div class="x12 txt radius-small bg-red margin-small-bottom icon-qrcode text-large"></div>

    <div class="x12 txt radius-small bg-red margin-small-bottom icon-pencil-square-o text-large"></div>

    <div class="x12 txt radius-small bg-red margin-small-bottom icon-question text-large"></div> -->

    <a href="javascript:;" onclick="slideFunction(&#39;top&#39;);"><div class="txt radius-small bg-red margin-small-bottom icon-arrow-up text-large"></div></a>

</div>



</body></html>